package test2;

public class Dog extends  Aniaml{
    public Dog() {
    }

    public Dog(int age, String name) {
        super(age, name);
    }
    public void eat() {
        System.out.println("狗在吃饭");
    }

    @Override
    public void show() {
        System.out.println("子类拥有了父类的方法");
    }
}
